package com.hkts.management.drivercomment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.management.common.utils.Result;
import com.hkts.management.drivercomment.entity.DriverComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.management.model.enums.OrderTypeEnum;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hml
 * @since 2021-05-20
 */
public interface IDriverCommentService extends IService<DriverComment> {

    /**
     * 分页查询
     *
     * @param page
     * @param driverComment
     * @return
     */
    IPage<DriverComment> selectPage(Page<DriverComment> page, DriverComment driverComment);

    List<DriverComment> selectList(DriverComment driverComment);

    Result<Object> getCredit(String driverId);

    DriverComment selectComment(String orderId);

    Result<DriverComment> saveDrverComment(DriverComment driverComment);

    void updateOrderOnEs(String id, OrderTypeEnum orderType, Integer subState);
}